import request from '@/utils/request'

export const getEmployeeListService = ({ page, pageSize, name }) => {
  return request.get('/employee/page', {
    params: {
      page: page,
      pageSize: pageSize,
      name: name === undefined ? '' : name
    }
  })
}
export const addEmployeeService = (data) => {
  return request.post('/employee', data)
}

export const editEmployeeService = (data) => {
  return request.put('/employee', data)
}
